#ifndef task_worktask_h
#define task_worktask_h

#include "Task.h"
#include "Socket.h"

using namespace ddserver::thread;
using namespace ddserver::socket;

namespace ddserver 
{
namespace task 
{

const uint32_t recv_buff_size = 2;

struct MsgHead 
{
    char flag[8];
    uint32_t cmd;
    uint32_t len;
};

class WorkTask : public Task
{
public:
    WorkTask(Socket * socket,int servertype);
    virtual ~WorkTask();

public:
    virtual void run();
    virtual void destroy();

private:
    int m_serverType;
};

}
}
#endif
